﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using EPanShareSystem.DbUtity;
using EPanShareSystem.Model;

namespace EPanShareSystem.Web.Controllers
{
    public class TestController : Controller
    {
        //
        // GET: /Test/

        public ActionResult Index()
        {
            try
            {
                EFDbHelper dbHelper = new EFDbHelper();
                var model = new admin();
                model.id = 55;
                model.adminname = "test";
                dbHelper.Add(model);
                return View();
            }
            catch (Exception exception)
            {

                throw exception;
            }
        
        }

    }
}
